setUserAttributeEpochTime

fun setUserAttributeEpochTime(context: Context, name: String, value: Long, appId: String? = null, attributeLevel: UserAttributeLevel = UserAttributeLevel.PROJECT)

Sets the given epoch time for the given user.

Since

12.0.00

Parameters

context

instance of Context

name

user attribute name

value

user attribute value

appId

Account identifier, APP ID on the MoEngage Dashboard. If null, default instance will be used

attributeLevel

level at which the attribute has to be set

Throws

if the attribute level is UserAttributeLevel.PORTFOLIO but the project id is not configured during initialisation